package cm.cool.web.service.wallet;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import cm.cool.web.bean.Wallet;
import cm.cool.web.data.WalletMapper;

/**
 * 钱包操作service
 * @author fangzhenxing
 * time : 2017年10月18日16:39:17
 *
 */
@Service
public class WalletService {
   
	@Autowired
	WalletMapper walletMapper; 
	
	/**
	 * 获取指定币种的总数量
	 * @return
	 */
	public long selectBzCount(Wallet wallet){
		
		long resultCount=-1;
		try {
			 resultCount=walletMapper.selectBzCount(wallet);
		} catch (Exception e) {
             e.printStackTrace();
             resultCount=-1;
		}
		return resultCount;
	}
}
